package cn.madis.ymcc.dto;

import cn.madis.ymcc.domain.Course;
import cn.madis.ymcc.domain.CourseDetail;
import cn.madis.ymcc.domain.CourseMarket;
import cn.madis.ymcc.domain.CourseResource;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import java.util.List;

@Data
public class CourseAddDto {
   @Valid
   private Course course;
   @Valid
   private CourseDetail courseDetail;
   @Valid
   private CourseMarket courseMarket;
   @Valid
   private CourseResource courseResource;
   @NotEmpty(message = "teacharid不能为空")
   private List<Long> teacharIds;
}
